import java.text.DecimalFormat;
import java.util.Scanner;

public class jichu01 {
    public static void main(String[] args){
        DecimalFormat df = new DecimalFormat("0.0000");
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入你的体重：");
        double weight = sc.nextInt();
        System.out.println("请输入你的身高：");
        double height = sc.nextDouble();
        System.out.println("请输入你的年龄：");
        int age = sc.nextInt();
        System.out.println(String.format("%.2f",bmi(weight,height)));
        System.out.println(String.format("%.2f",bmr(weight,height,age)));

    }
    public  static double bmi(double weight,double height){
        return (weight/(height*height));
    }
    public static double bmr(double weight,double height,int age){
        return (66+13.7*weight+5*height-6.8*age);
    }
}
